	<div class="side<?php if ( !is_home() || is_paged() ) echo " sub"; ?> cycle">
		<div class="box contribute" id="Contribute">
			<div class="vessel">
				<a href="<?php bloginfo('url') ?>/submit" id="ContributeSubmit">投一稿?</a>
				<p>「分享 你的故事」</p>
				<?php if ( is_home() ):?>
				<p><a href="http://www.youmeiwenzi.com/norm" target="_blank">投稿规范</a> | <a href="http://www.youmeiwenzi.com/help" target="_blank">帮助指南</a> | <a href="http://www.youmeiwenzi.com/join" target="_blank">加入我们</a> | <a href="http://www.youmeiwenzi.com/column" target="_blank">专栏申请</a></p>
				<?php endif; ?>
			</div>
		</div>
		<div class="box share">
			<h3>分享到</h3>
			<div class="vessel">
<!-- Baidu Button BEGIN -->
	<div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare">
		<a class="bds_tsina"></a>
		<a class="bds_tqq"></a>
		<a class="bds_qzone"></a>
		<a class="bds_renren"></a>
		<a class="bds_douban"></a>
		<span class="bds_more">更多</span>
		<a class="shareCount"></a>
	</div>
<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=481248" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
	document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
</script>
<!-- Baidu Button END -->
			</div>
		</div>
		<div class="box wei">
			<h3>微关注</h3>
			<div class="vessel">
				<div class="wb">
					<iframe width="136" height="24" frameborder="0" allowtransparency="true" marginwidth="0" marginheight="0" scrolling="no" border="0" src="http://widget.weibo.com/relationship/followbutton.php?language=zh_cn&width=136&height=24&uid=2651940094&style=2&btn=red&dpc=1"></iframe>
					<iframe src="http://follow.v.t.qq.com/index.php?c=follow&a=quick&name=youmeiwenzi_com&style=5&t=1349439162341&f=1" frameborder="0" scrolling="auto" width="130" height="24" marginwidth="0" marginheight="0" allowtransparency="true"></iframe>
				</div>
				<div class="wx"><img src="http://www.youmeiwenzi.com/wp-content/themes/txtjee/images/wx.png" alt="优美文字微信号: youmeiwenzi" title="优美文字微信号: youmeiwenzi" /><strong>微信</strong> 扫描左图，或添加微信号 <strong>youmeiwenzi</strong>，订阅优美文字网，精华优美文字每日推送。也可以用微信投稿哦~</div>
			</div>
		</div>
		<?php if ( is_home() && !is_paged() ):?>
		<div class="box feed">
			<h3>订阅到</h3>
			<div class="vessel"><a href="http://mail.qq.com/cgi-bin/bookcol?colid=20277" target="_blank">QQ邮箱</a> | <a href="http://9.douban.com/reader/subscribe?url=http://www.youmeiwenzi.com/feed" target="_blank">豆瓣九点</a> | <a href="http://xianguo.com/subscribe?url=http%3A%2F%2Fwww.youmeiwenzi.com%2Ffeed" target="_blank">鲜果</a> | <a href="http://reader.youdao.com/b.do?keyfrom=bookmarklet&url=http%3A%2F%2Fwww.youmeiwenzi.com%2Ffeed" target="_blank">有道</a> | <a href="http://fusion.google.com/add?source=atgs&feedurl=www.youmeiwenzi.com/feed" target="_blank">Google</a> | <a href="http://www.youmeiwenzi.com/feed" target="_blank" class="rss">RSS</a></div>
		</div>
		<div class="box tags">
			<h3>标签云</h3>
			<div class="vessel"><?php wp_tag_cloud('smallest=9'); ?></div>
		</div>
		<div class="box text">
			<h3>近期热门</h3>
			<div class="vessel">
				<?php
				$result = $wpdb->get_results("select p.ID as ID,p.post_title as post_title,pm.meta_value as meta_value from $wpdb->posts as p join $wpdb->postmeta as pm on p.ID=pm.post_id where pm.meta_key='views' and p.post_type='post' and p.post_status='publish' and DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= date(p.post_date) order by CONVERT(pm.meta_value,SIGNED) DESC limit 0,10");
				$count = count($result);
				if( $count > 0 ):
					$i = 0;
					$li_list = '';
					foreach ( $result as $value ){
						setup_postdata( $value );
						$postid = $value -> ID;
						$title = $value -> post_title;
						$views = $value -> meta_value;
						$i++;

						$li_list .= '<li><a rel="bookmark" href="' . get_permalink($postid) . '" title="'.$views.' 次浏览">' . $title . '</a></li>';
					}
				?>
				<ul><?php echo $li_list; ?></ul>
				<?php endif; ?>
			</div>
		</div>
		<div class="box text">
			<h3>最新评论</h3>
			<div class="vessel">
			<ul class="ds-recent-comments" data-num-items="8" data-excerpt-length="80"></ul>
			</div>
		</div>
		<?php endif;?>
		<?php if ( !is_category() && !is_page() && !is_author() && !is_single() ): ?>
		<div class="box calenda">
			<h3>日历</h3>
			<div class="vessel"><?php get_calendar();?></div>
		</div>
		<?php endif; ?>
		<?php if ( !is_home() || is_paged() ) echo '<div id="SideDIV"><div id="SideBox">';?>
		<div class="sponsor" id="ADSide2"><script type="text/javascript">BAIDU_CLB_fillSlot("403753");</script></div>
		<?php if ( !is_home() || is_paged() ) echo '</div></div><script type="text/javascript">$("#SideBox").followDIV();</script>';?>
	</div>